﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ComBLL;
using ComModel;
namespace ForumUI.Controllers
{
    public class xianController : Controller
    {
        //
        // GET: /xian/

        public ActionResult Index()
        {
            return View();
        }
          xianbll bll = new xianbll();
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        public ActionResult xian()
        {
           
            List<ContentModel> list = bll.showContent();
            //Session["id"] = list;

            ViewBag.feifei = bll.showContent();

            int i = bll.countContent();
          
            ViewBag.zhuzhu = i;
            return View();
        }


        /// <summary>
        /// 详情/回帖
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult xiangContentModel(int id)
        {
            ContentModel s=bll.xiangContentModel(id);
            int rid = id;
            List<ReplyModel> list = bll.showReplyModel(rid);
            ViewBag.tie = bll.showReplyModel(rid);
            return View(s);

        }


     
        

    }
}
